package com.zhang.buiness.amaster.workserver.client.fallback;


import com.zhang.buiness.amaster.workserver.client.fegin.ConfigEnvServiceClient;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

@Component
public class ConfigEnvServiceClientFallBack implements ConfigEnvServiceClient {
    @Override
    public List<String> getEnvConfig() {
        return Arrays.asList("Fallback response");
    }

    @Override
    public List<String> getcircuitBreakHystrixTest() {
        return Arrays.asList("Fallback response  circuitBreakHystrixTest");
    }

    @Override
    public List<String> getBreakHystrixTest() {
        return Arrays.asList("Fallback response  breakHystrixTest");
    }
}
